import client.AuctionClient;

public class AuctionClientMain {
	
	public static void main(String[] args){
		if(args.length < 3){
			System.err.println("You have to add <server adress> <server tcp port number> <udp port number to use>");
			return;
		}
		int tcpPortNumber = Integer.parseInt(args[1]);
		int udpPortNumber = Integer.parseInt(args[2]);
		if(tcpPortNumber == 0 || udpPortNumber == 0){
			System.err.println("You have to enter a valid port number value!");
			return;
		}
		
		AuctionClient auctionClient = new AuctionClient(args[0], tcpPortNumber, udpPortNumber);
		auctionClient.startOperating();
	}
}
